翻訳と辞書
Words near each other
・ A-Love
・ A-Ma Temple
・ A-MAC
・ A-Mart (United States)
・ A-May Eain
・ A-maze-ing Laughter
・ A-mei
・ A-Minima
・ A-Mobile
・ A-mount
・ A-Musik
・ A-Myin-thit
・ A-Nal-Y-Sis
・ A-Nation
・ A-Next
A-normal form
・ A-not-A question
・ A-not-B error
・ A-ok
・ A-One (band)
・ A-One (TV channel)
・ A-One Punjabi TV
・ A-P-A Transport Corp.
・ A-PAC
・ A-paper
・ A-paracompact space
・ A-Plot
・ A-Plus
・ A-Plus (rapper)
・ A-Plus Entertainment


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

A-normal form : ウィキペディア英語版
A-normal form

In computer science, A-normal form (abbreviated ANF) is an intermediate representation of programs in functional compilers introduced by Sabry and Felleisen in 1992 as a simpler alternative to continuation-passing style (CPS). Some of the advantages of using CPS as an intermediate representation are that optimizations are easier to perform on programs in CPS than in the source language, and that it is also easier for compilers to generate machine code for programs in CPS. Flanagan et al. showed how compilers could use ANF to achieve those same benefits with one source-level transformation; in contrast, for realistic compilers the CPS transformation typically involves additional phases, for example, to simplify CPS terms.
In ANF, all arguments to a function must be trivial. That is, evaluation of each argument must halt immediately.
This article deals with the basic definition expressed in terms of the λ-calculus with weak reduction and let-expressions, where the restriction is enforced by
# allowing only constants, λ-terms, and variables, to serve as arguments of function applications, and
# requiring that the result of a non-trivial expression be captured by a let-bound variable or returned from a function.
==Grammar==

The following BNF grammar describes the pure λ-calculus modified to support the constraints of ANF:

EXP ::= VAL VAL
| let VAR = EXP in EXP
VAL ::= λ VAR . EXP
| VAR

Variants of ANF used in compilers or in research often allow constants, records, tuples, multiargument functions, primitive operations and conditional expressions as well.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「A-normal form」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.